package com.bw.common.db.dao

import androidx.room.Dao
import androidx.room.Delete
import androidx.room.Insert
import androidx.room.Query
import com.bw.common.db.entity.HistoryEntity
import kotlinx.coroutines.flow.Flow

/**
 * @author:created by hahajing
 * 时间：2024/4/28 0028
 * 企鹅号:444511958
 * 描述:
 */
@Dao
interface HistoryDao {
    @Insert
    fun addHistory(vararg entity: HistoryEntity)

    @Query("SELECT * FROM b_history")
    fun findAll(): List<HistoryEntity>

    @Delete
    fun remove(entity: HistoryEntity)
}